package com.itmk.business.article.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itmk.business.article.entity.Article;
import com.itmk.vo.req.ArticleReqVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleService extends IService<Article> {

    List<Article> getArticlesByCategoryId(Long categoryId);
    Long saveArticle(Article article);
    Long updateArticle(@Param("article") Article article);
    Article getArticleById(Long id);
    IPage<Article> getArticleList(IPage<Article> iPage,ArticleReqVO vo);
    Boolean displayArticle(@Param("article") Article article);

    Boolean SaveArticleTag(Article article);
}
